//************************************************************************
/// <copyrigth>2024-2025 Corporation.All Rights Reserved</copyrigth>
/// <author>tangyingzhong</author>
/// <contact>tangyz114987@outlook.com</contact>
/// <version>v1.0.0</version>
/// <describe>
/// Cross-Platform logger
///</describe>
/// <date>2024/2/4</date>
///***********************************************************************
#ifndef SYSLOGGER_H
#define SYSLOGGER_H

#include "PocoLogger.h"

#define INIT_FILE_SYS_LOGGER(ModuleName,LogFilePath) SystemTool::PocoLogger::GetInstance()->AddFileLogger(ModuleName,LogFilePath);
#define INIT_CONSOLE_SYS_LOGGER(ModuleName) SystemTool::PocoLogger::GetInstance()->AddConsoleLogger(ModuleName);

#define LOG_DEBUG(ModuleName, Msg) \
    SystemTool::PocoLogger::GetInstance()->Log(ModuleName, Msg, __FILE__, __LINE__, 7);

#define LOG_INFO(ModuleName, Msg) \
    SystemTool::PocoLogger::GetInstance()->Log(ModuleName, Msg, __FILE__, __LINE__, 6);

#define LOG_WARN(ModuleName, Msg) \
    SystemTool::PocoLogger::GetInstance()->Log(ModuleName, Msg, __FILE__, __LINE__, 4);

#define LOG_ERROR(ModuleName, Msg) \
    SystemTool::PocoLogger::GetInstance()->Log(ModuleName, Msg, __FILE__, __LINE__, 3);

#endif // SYSLOGGER_H
